<?php
    require_once 'config.php';
    require_once "../includes/SC/SCrace.php";

    $q = $_GET["q"];

    
    $SCrace = new SCrace();
    $listeRaces = $SCrace->lister(new Race(null, $q));

    //echo '<select multiple="multiple" name="cars">';
    foreach ($listeRaces as $uneRace) {
        //echo $uneRace->getNom().'<br />';
        
        //echo "<label><input type='checkbox' name='race' value=".$uneRace->getNom()." />".$uneRace->getNom()."</label><br />";
        echo '<option value="'.$uneRace->getNom().'">'.$uneRace->getNom().'</option>';
    }
    //echo '</select>';
?> 